home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / console / svgatext.3 / svgatext / SVGATextMode-1.3 / doc / setpalette.doc < prev    next >
Encoding:
Text File  |  1995-07-06  |  2.3 KB  |  73 lines

  1.          setpalette: palette set/get program
  2.          ===================================
  3.          
  4. Another quick hack.
  5.  
  6. This allows you to set or get the current color palettes used in all
  7. RAMDAC's. That should allow you to change all 16 colors normally used for
  8. text mode display. A real necessity if you have a grayscale monitor.
  9.  
  10. The program allows you to change all 256 palette entries, although text mode
  11. only uses 16. Just in case someone has a use for it.
  12.  
  13. There are other similar utilities around (like the ones in svgalib), so this
  14. will be of little real use. But is was lying around somewhere picking up
  15. dust...
  16.  
  17. The commands are used as follows:
  18.  
  19.  
  20.   ../getpalette: version 0.9. (c) 1995 Koen Gadeyne.
  21.    Usage: ../getpalette [options] [color_index]
  22.  
  23.        Options: -n  Don't program VGA hardware
  24.                 -d  print debugging information
  25.                 -h  print usage information
  26.  
  27.        color_index: index number in the palette look-up table (0..255).
  28.                       or 'all' to show all 256 entries
  29.      
  30.  
  31.   ../setpalette: version 0.9. (c) 1995 Koen Gadeyne.
  32.    Usage: ../setpalette [options] color_index R G B
  33.  
  34.        Options: -n  Don't program VGA hardware
  35.                 -d  print debugging information
  36.                 -h  print usage information
  37.  
  38.        color_index: index number in the palette look-up table (0..255).
  39.                       or '-' to use standard input
  40.                       (Input format = '<index>: <R-value> <G-value> <B-value>')
  41.        R, G, B : color intensity for Red, Green or Blue (0..63).
  42.  
  43.  
  44. This should be clear enough. 
  45.  
  46.  
  47. SPECIAL FEATURE:
  48. ----------------
  49.  
  50. A special feature (if you can call that a feature) is the possibility to use
  51. the output of getpalette DIRECTLY as input of setpalette (with '-' as color
  52. index, using standard input).
  53.  
  54. This opens new possibilities for power-users who want to use a script to
  55. dynamically and selectively change text colors. 
  56.  
  57. It also allows you to redirect the output from getpalette to a file, and
  58. then manually edit it, using it as new input for setpalette, e.g. for
  59. setting custom colors when booting Linux. 
  60.  
  61. Examples: 
  62.  
  63. a simple "no-op" would be:
  64.  
  65. > getpalette all | setpalette -
  66.  
  67. This should change absolutely nothing (note the "should" ;-)
  68.  
  69. You could insert any sort of fancy processing into that pipeline, if you
  70. like. 
  71.  
  72.  
  73.